﻿namespace Subtitles.OpenSubtitlesSubtitlesProvider
{
    using CookComputing.XmlRpc;

    [XmlRpcUrl("http://api.opensubtitles.org/xml-rpc")]
    public interface IOSDb : IXmlRpcProxy
    {
        [XmlRpcMethod("LogIn")]
        XmlRpcStruct Login(string login, string password, string language, string useragent);               

        [XmlRpcMethod("SearchSubtitles")]
        XmlRpcStruct SearchSubtitles(string token, XmlRpcStruct[] searchQuery);
    }
}
